package com.edbergogroup.springexamples.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Embeddable;

@Embeddable
public class Adress implements Serializable {

	private static final long serialVersionUID = -3262733091819791683L;
	
	public Adress(){
		
	}
	
	public Adress(String citty, String street, String houseNumber) {
		super();
		this.citty = citty;
		this.street = street;
		this.houseNumber = houseNumber;
	}

	@Column(name="CITTY")
	private String citty;
	@Column(name="STREET")
	private String street;
	@Column(name="HOUSE_NO")
	private String houseNumber;

	public String getCitty() {
		return citty;
	}

	public void setCitty(String citty) {
		this.citty = citty;
	}

	public String getStreet() {
		return street;
	}

	public void setStreet(String street) {
		this.street = street;
	}

	public String getHouseNumber() {
		return houseNumber;
	}

	public void setHouseNumber(String houseNumber) {
		this.houseNumber = houseNumber;
	}
}
